<extend name="Public/base" />
<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>平台收入管理</h2>
    </div>


    <!-- 数据列表 -->
        <div class="money">
            <div class="main-title" style="margin-top: 30px">
                <h3 style="display: block; float: left;">平台收入统计</h3>
            </div>
            <div class="data-table" style="margin-bottom: 50px">
                <table>
                    <!-- 表头 -->
                    <thead>
                    <tr>
                        <th>平台总交易额</th>
                        <th>冻结资金</th>
                        <th>到账收入</th>
                    </tr>
                    </thead>

                    <!-- 列表 -->
                    <tbody>
                    <tr>
                        <td>8888888.00元</td>
                        <td> 8888.00元</td>
                        <td>8880000.00元</td>
                    </tr>
                    </tbody>
                </table>
            </div style>
            <hr/>
            <div class="search-money">
                <div class="search-money-num">
                    <h3 style="display: block; float: left;">订单单号：</h3>
                </div>
                <div class="search-form fr cf">
                <div class="sleft">
                    <input name="nickname" class="search-input" value="" placeholder="请输入用户昵称或者ID" type="text">
                    <a class="sch-btn" href="javascript:;" id="search" url="/qgh/admin.php?s=/User/index.html"><i class="btn-search"></i></a>
                </div>
                </div>
            </div>
            <div class="data-table">
                <table>
                    <!-- 表头 -->
                    <thead>
                    <tr>
                        <th class="row-selected row-selected">
                            <input class="check-all" type="checkbox">
                        </th>
                        <volist name="list_grids" id="field">
                            <th>{$field.title}</th>
                        </volist>
                        <th>订单号</th>
                        <th>到账金额</th>
                        <th>到账时间</th>
                    </tr>
                    </thead>

                    <!-- 列表 -->
                    <tbody>
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                        <td>7141586102</td>
                        <td>155元</td>
                        <td>2015-12-3 12:21:12</td>
                    </tr>
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                        <td>7141586102</td>
                        <td>155元</td>
                        <td>2015-12-3 12:21:12</td>
                    </tr>
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                        <td>7141586102</td>
                        <td>155元</td>
                        <td>2015-12-3 12:21:12</td>
                    </tr>
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                        <td>7141586102</td>
                        <td>155元</td>
                        <td>2015-12-3 12:21:12</td>
                    </tr>
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                        <td>7141586102</td>
                        <td>155元</td>
                        <td>2015-12-3 12:21:12</td>
                    </tr>
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                        <td>7141586102</td>
                        <td>155元</td>
                        <td>2015-12-3 12:21:12</td>
                    </tr>

                    </tbody>
                </table>
            </div>

</block>

<block name="script">
    <script type="text/javascript" charset="utf-8">
        //搜索功能
        $("#search").click(function(){
            var url = $(this).attr('url');
            var query  = $('.search-form').find('input').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
            query = query.replace(/^&/g,'');
            if( url.indexOf('?')>0 ){
                url += '&' + query;
            }else{
                url += '?' + query;
            }
            window.location.href = url;
        });
        //回车搜索
        $(".search-input").keyup(function(e){
            if(e.keyCode === 13){
                $("#search").click();
                return false;
            }
        });
        //导航高亮
        highlight_subnav('{:U('Trader/traderList')}');
    </script>
    <script type="text/javascript" charset="utf-8">
        onload = function ()
        {
            setInterval (function ()
            {
                var date = new Date ();
                txt.value = date.toLocaleDateString();
            });

        }

    </script>
</block>